<template>
    <div>
        <el-form :inline="true"  class="demo-form-inline">
            <el-form-item label="角色名称">
            <el-input v-model="text" placeholder="角色名称"></el-input>
            </el-form-item>
            <el-form-item>
            <el-button type="primary" @click="onSubmit">查询</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

  <script>
    import request from "../../../../../utils/request.js";
    export default {
      data() {
        return {
          text:""
        }
      },
      methods: {
        onSubmit() {
          console.log('submit!',this.text);
          this.$bus.$emit("query",this.text);
        }
      }
    }
  </script>